package com.pp.web.map;


import java.util.Objects;

public class Entry {
    public String value;
    public String key;
    public int hash;
    public Entry next;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Entry entry = (Entry) o;
        return hash == entry.hash &&
                Objects.equals(value, entry.value) &&
                Objects.equals(key, entry.key) &&
                Objects.equals(next, entry.next);
    }

    @Override
    public int hashCode() {
        return Objects.hash(value, key, hash, next);
    }
}
